#!/bin/sh
#echo dumpsys activity > temp.txt
#adb shell < temp.txt | grep "mFocusedActivity"
ACTIVITY=`adb shell dumpsys activity | grep "mFocusedActivity"`
echo $ACTIVITY
